<!--
 * @Description: 
 * @Author: Cxy
 * @Date: 2023-07-24 22:21:49
 * @LastEditors: Cxy
 * @LastEditTime: 2024-08-29 15:32:36
 * @FilePath: \xy-admin\play\src\views\example\proxy.vue
-->
<script setup lang="ts">
import { aliasApi, defaultApi, noAliasApi, notResetPathApi } from '@/api/example'
async function defaultOper() {
  await defaultApi({ aa: [1, 2, 3] })
}
async function aliasOper() {
  await aliasApi('Country=Brasil&City=Belo Horizonte')
}
async function noAliasOper() {
  await noAliasApi({ Country: 'Brasil&City', Belo: 'Horizonte' })
}
async function notResetPathOper() {
  await notResetPathApi({ Country: 'Brasil&City', Belo: 'Horizonte' })
}
</script>

<template>
  <el-card shadow="never">
    <template #header>
      <div class="card-header">
        <span>代理</span>
      </div>
    </template>
    <div>
      <el-button @click="defaultOper">默认代理defaultApi</el-button>
      <el-button @click="aliasOper">别名代理aliasApi</el-button>
      <el-button @click="noAliasOper">直接代理noAliasApi</el-button>
      <el-button @click="notResetPathOper">不重置路径代理notResetPathApi</el-button>
    </div>
  </el-card>
</template>
